Independent factorial
University of Amsterdam
13 October 2026
In this lecture we aim to:
Reading: Chapter 13 (§13.1–13.14)
Two or more independent variables with two or more categories. One dependent variable.
The independent factorial ANOVA analyses the variance of multiple independent variables (Factors) with two or more categories.
Effects and interactions:
| Variance | Sum of squares | df | Mean squares | F-ratio |
|---|---|---|---|---|
| Model | \(\text{SS}_{\text{model}} = \sum{n_k(\bar{X}_k-\bar{X})^2}\) | \(k_{model}-1\) | \(\frac{\text{SS}_{\text{model}}}{\text{df}_{\text{model}}}\) | \(\frac{\text{MS}_{\text{model}}}{\text{MS}_{\text{residual}}}\) |
| \(\hspace{2ex}A\) | \(\text{SS}_{\text{A}} = \sum{n_k(\bar{X}_k-\bar{X})^2}\) | \(k_A-1\) | \(\frac{\text{SS}_{\text{A}}}{\text{df}_{\text{A}}}\) | \(\frac{\text{MS}_{\text{A}}}{\text{MS}_{\text{residual}}}\) |
| \(\hspace{2ex}B\) | \(\text{SS}_{\text{B}} = \sum{n_k(\bar{X}_k-\bar{X})^2}\) | \(k_B-1\) | \(\frac{\text{SS}_{\text{B}}}{\text{df}_{\text{B}}}\) | \(\frac{\text{MS}_{\text{B}}}{\text{MS}_{\text{residual}}}\) |
| \(\hspace{2ex}A \times B\) | \(\text{SS}_{A \times B} = \text{SS}_{\text{model}} - \text{SS}_{\text{A}} - \text{SS}_{\text{B}}\) | \(df_A \times df_B\) | \(\frac{\text{SS}_{A \times B}}{\text{df}_{A \times B}}\) | \(\frac{\text{MS}_{A \times B}}{\text{MS}_{\text{residual}}}\) |
| Residual | \(\text{SS}_{\text{residual}} = \sum{s_k^2(n_k-1)}\) | \(N-k_{model}\) | \(\frac{\text{SS}_{\text{residual}}}{\text{df}_{\text{residual}}}\) | |
| Total | \(\text{SS}_{\text{total}} = \text{SS}_{\text{model}} + \text{SS}_{\text{residual}}\) | \(N-1\) | \(\frac{\text{SS}_{\text{total}}}{\text{df}_{\text{total}}}\) |
In this example we will look at the amount of accidents in a car driving simulator while subjects were given varying doses of speed and alcohol.
| Variance | Sum of squares | df | Mean squares | F-ratio |
|---|---|---|---|---|
| Model | \(\text{SS}_{\text{model}} = \sum{n_k(\bar{X}_k-\bar{X})^2}\) | \(k_{model}-1\) | \(\frac{\text{SS}_{\text{model}}}{\text{df}_{\text{model}}}\) | \(\frac{\text{MS}_{\text{model}}}{\text{MS}_{\text{residual}}}\) |
Predicts group means for each cell of the design:
speed alcohol accidents n
1 none (S) none (A) 2.1060 20
2 some (S) none (A) 2.9445 20
3 much (S) none (A) 3.8880 20
4 none (S) some (A) 3.4435 20
5 some (S) some (A) 4.7625 20
6 much (S) some (A) 5.5790 20
7 none (S) much (A) 5.2970 20
8 some (S) much (A) 6.5125 20
9 much (S) much (A) 7.5720 20
| Variance | Sum of squares | df | Mean squares | F-ratio |
|---|---|---|---|---|
| Residual | \(\text{SS}_{\text{residual}} = \sum{s_k^2(n_k-1)}\) | \(N-k\) | \(\frac{\text{SS}_{\text{residual}}}{\text{df}_{\text{residual}}}\) |
| Variance | Sum of squares | df | Mean squares | F-ratio |
|---|---|---|---|---|
| \(\hspace{2ex}A\) | \(\text{SS}_{\text{A}} = \sum{n_k(\bar{X}_k-\bar{X})^2}\) | \(k_A-1\) | \(\frac{\text{SS}_{\text{A}}}{\text{df}_{\text{A}}}\) | \(\frac{\text{MS}_{\text{A}}}{\text{MS}_{\text{residual}}}\) |
none (S) some (S) much (S)
3.615500 4.739833 5.679667
| Variance | Sum of squares | df | Mean squares | F-ratio |
|---|---|---|---|---|
| \(\hspace{2ex}B\) | \(\text{SS}_{\text{B}} = \sum{n_k(\bar{X}_k-\bar{X})^2}\) | \(k_B-1\) | \(\frac{\text{SS}_{\text{B}}}{\text{df}_{\text{B}}}\) | \(\frac{\text{MS}_{\text{B}}}{\text{MS}_{\text{residual}}}\) |
none (A) some (A) much (A)
2.9795 4.5950 6.4605
| Variance | Sum of squares | df | Mean squares | F-ratio |
|---|---|---|---|---|
| \(\hspace{2ex}A \times B\) | \(\text{SS}_{A \times B} = \text{SS}_{\text{model}} - \text{SS}_{\text{A}} - \text{SS}_{\text{B}}\) | \(df_A \times df_B\) | \(\frac{\text{SS}_{A \times B}}{\text{df}_{A \times B}}\) | \(\frac{\text{MS}_{A \times B}}{\text{MS}_{\text{residual}}}\) |
For every \(F\)-statistic, we use the \(MS_{residual}\) of the full model:
\[\begin{aligned} F_{Speed} &= \frac{{MS}_{Speed}}{{MS}_{residual}} \\ F_{Alcohol} &= \frac{{MS}_{Alcohol}}{{MS}_{residual}} \\ F_{Alcohol \times Speed} &= \frac{{MS}_{Alcohol \times Speed}}{{MS}_{residual}} \\ \end{aligned}\]
\[F_{Alcohol \times Speed}\]
In reality, we do not know exactly how the shared variance is distributed across these three sources (IV1, IV2, shared)
Planned comparisons
Unplanned comparisons
Exam note: Know where the options are, exam question will inform you which correction to use
General effect size measure: Partial omega squared \(\omega_p^2\)
How to interpret?
| \(\omega^2\) and \(\omega_p^2\) | Magnitude of Effect |
|---|---|
| ≥ 0.01 | Small |
| ≥ 0.06 | Medium |
| ≥ 0.14 | Large |
Effect sizes of contrasts or post-hoc comparisons: Cohen’s \(d\)
How to interpret?
| Cohen’s d | Magnitude of Effect |
|---|---|
| ≥ 0.2 | Small |
| ≥ 0.5 | Medium |
| ≥ 0.8 | Large |
With multiple predictor variables:
Davey et al. (2003): Don’t forget your toothbrush
Does the effect of the stop rule on checking depend on mood?
mood: negative, positive or neutral mood inductionstop_rule: “as many as you can” vs. “feel like continuing”checks: number of things to check before going on holiday
Scientific & Statistical Reasoning